﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="lawyer.aspx.cs" Inherits="HFWebApp.lawyeruser.lawyer" %>
<%@ Register src="../Control/top.ascx" tagname="top" tagprefix="uc1" %>
<%@ Register src="../Control/end.ascx" tagname="end" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<title><%=model.RealName %>律师_红法网</title>
<link href="<%=this.getDemain %>/Style/Style.css" rel="stylesheet" type="text/css" />
<link href="<%=this.getDemain %>/CSS.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=this.getDemain %>/Scripts/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=this.getDemain %>/javascript/SwitchTags.js"></script>
<script type="text/javascript" src="<%=this.getDemain %>/Scripts/WebFunction.js"></script>
<script type="text/javascript">
    function sendNote() {
        var title = $("#title");
        if (title.val() == "") {
            alert('标题不能为空');
            title.focus();
            return false;
        }

        var content = $("#content");
        if (content.val() == "") {
            alert("请填写咨询内容");
            content.focus();
            return false;
        }

        var phone = $("#phone");

        var LawyerID = '<%=model.ID %>';

        $.getJSON(
            "/AjaxSource/AddLawyerNote.ashx",
            {
                title: title.val(),
                content: content.val(),
                phone: phone.val(),
                lawyer: LawyerID,
                rand: Math.floor(Math.random() * 10000).toString()
            },
            function (jsonData) {
                alert(jsonData.Message);
                if (jsonData.isTrue) {
                    title.val("");
                    content.val("");
                    phone.val("");
                }
            }
        );

            return false;
    }
</script>
</head>

<body>
<uc1:top ID="top1" MenuClassID="3" focusLink3="focusLink"  runat="server" />
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="730" valign="top"><table width="720" border="0" cellpadding="0" cellspacing="0" class="bk_h" style="margin-bottom:12px">
        <tr>
          <td valign="top" class="bt_bj_26"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="37" class="bt_14_x" style="padding-left:10px">律师资料</td>
              </tr>
          </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="160" align="center" valign="top"><table width="130" border="0" cellpadding="0" cellspacing="0" class="bk_h" style="margin-top:12px">
                  <tr>
                    <td height="160" align="center"><img src="<%=this.getDemain + this.getUpFileFolder + model.HeadPic %>" width="120" height="150" /></td>
                  </tr>
                </table></td>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td class="h_20" style="line-height:25px;"><span class="bt_l"><%=model.RealName %>律师</span><br />
                      <strong>专长领域：</strong><br /><%=model.AreasString %> <br />
                      <strong>电话：</strong><%=model.Phone %> <strong>业务手机：</strong><%=model.Mobile %> (电话咨询律师请说明来自红法网法律咨询网)<br />
                      <strong>Email：</strong><%=model.Email %><br />
                      <strong>执业机构：</strong><%=model.LawyerFirm %>　<strong>执业证号：</strong><%=model.LawyerNo %><br />
                      <strong>地址：</strong><%=model.Address %></td>
                  </tr>
                  <tr>
                    <td><table border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="32" style="padding-right:5px;"><img src="<%=this.getDemain %>/images/ico_jb1.jpg" width="18" height="18" /></td>
                        <td style="padding-right:5px;">积分：<%=model.Point %></td>
                        <td style="padding-right:5px;"></td>
                        <td style="padding-right:5px;"></td>
                        <td style="padding-right:5px;"><img src="<%=this.getDemain %>/images/ico_s.jpg" alt="" width="19" height="22" /></td>
                        <td style="padding-right:5px;">点击量：<%=model.Hits %></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
    </table>
      <table width="720" border="0" cellpadding="0" cellspacing="0" class="bk_h" style="margin-bottom:12px">
        <tr>
          <td valign="top" class="bt_bj_26"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="37" class="bt_14_x" style="padding-left:10px">律师简介</td>
            </tr>
          </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="h_24" style="padding-left:12px; padding-right:12px">
              <tr>
                <td valign="top"><%=model.Content %></td>
              </tr>
            </table></td>
        </tr>
    </table>
      <table width="720" border="0" cellpadding="0" cellspacing="0" class="bk_h" style="margin-bottom:12px">
        <tr>
          <td valign="top" class="bt_bj_26"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="37" class="bt_14_x" style="padding-left:10px">在线咨询 <%=model.RealName %> 律师</td>
            </tr>
          </table>
          
            <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
              <form id="reviewForm" onsubmit="return sendNote();">
              <tr>
                <td width="120" height="32" align="right">题目：</td>
                <td><input type="text" name="title" id="title" /></td>
              </tr>
              <tr>
                <td height="32" align="right">内容：</td>
                <td style="padding-bottom:8px; padding-top:8px"><textarea name="content" id="content" cols="45" rows="5"></textarea></td>
              </tr>
              <tr>
                <td height="32" align="right">联系电话：</td>
                <td><input type="text" name="phone" id="phone" /></td>
              </tr>
              <tr>
                <td height="32" align="right">&nbsp;</td>
                <td>请填写真实手机号码，可免费得到律师对该问题的电话回访。</td>
              </tr>
              <tr>
                <td height="32" align="right">&nbsp;</td>
                <td><span style="padding-right:5px;">
                  <input type="submit" name="button3" id="button3" value="提交咨询" />
                </span></td>
              </tr>
              </form>
          </table>
          
          </td>
        </tr>
    </table></td>
    <td valign="top"><table width="250" border="0" cellpadding="0" cellspacing="0" class="bt_bj_25">
      <tr>
        <td height="31" valign="bottom"><table width="111" border="0" cellspacing="0" cellpadding="0" style="margin-left:6px">
          <tr>
            <td height="26" align="center" background="<%=this.getDemain %>/images/pro_bj1.jpg" class="bt_h_14">咨询我的问题</td>
          </tr>
        </table></td>
      </tr>
    </table>
      <table width="250" border="0" cellpadding="0" cellspacing="0" class="bk_xzy">
        <tr>
          <td valign="top">
              <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="26">◎<%#Eval("Title") %></td>
                        </tr>
                      </table>
                </ItemTemplate>
              </asp:Repeater>
          </td>
        </tr>
      </table>
      <table width="250" border="0" cellpadding="0" cellspacing="0" class="bt_bj_25" style="margin-top:12px">
        <tr>
          <td height="31" valign="bottom"><table width="111" border="0" cellspacing="0" cellpadding="0" style="margin-left:6px">
            <tr>
              <td height="26" align="center" background="<%=this.getDemain %>/images/pro_bj1.jpg" class="bt_h_14">我解答的问题</td>
            </tr>
          </table></td>
        </tr>
      </table>
      <table width="250" border="0" cellpadding="0" cellspacing="0" class="bk_xzy">
        <tr>
          <td valign="top">
              <asp:Repeater ID="Repeater2" runat="server">
                <ItemTemplate>
                    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="26">◎<a href="/FAQs/askcontent.aspx?id=<%#Eval("ID") %>" class="message" target="_blank"><%#Eval("Title") %></a></td>
                        </tr>
                      </table>
                </ItemTemplate>
              </asp:Repeater>
          </td>
        </tr>
      </table>
      <table width="250" border="0" cellpadding="0" cellspacing="0" class="bt_bj_25" style="margin-top:12px">
        <tr>
          <td height="31" valign="bottom"><table width="111" border="0" cellspacing="0" cellpadding="0" style="margin-left:6px">
            <tr>
              <td height="26" align="center" background="<%=this.getDemain %>/images/pro_bj1.jpg" class="bt_h_14">律师文章</td>
            </tr>
          </table></td>
        </tr>
      </table>
      <table width="250" border="0" cellpadding="0" cellspacing="0" class="bk_xzy">
        <tr>
          <td valign="top">
              <asp:Repeater ID="Repeater3" runat="server">
                <ItemTemplate>
                    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="26">◎<a href="#" class="message"><%#Eval("Title") %></a></td>
                        </tr>
                      </table>
                </ItemTemplate>
              </asp:Repeater>
          
          </td>
        </tr>
      </table></td>
  </tr>
</table>
<uc2:end ID="end1" runat="server" />
</body>
</html>

